<table align="center" cellpadding="3" cellspacing="0" border="0">
<form name="frmsearch" id="frmsearch" action="<?php echo $this->site['base_url']?>product/search/" method="post">
<tr>
<td align="center">
    <input type="text" class="text" style="width:9em;" id="txt_keyword" name="txt_keyword"/>
</td>
<tr>
   <td align="center" style="padding-top:5px">
   <input type="submit" name="btn_submit" class="button" value="<?php echo Kohana::lang('product_lang.btn_search')?>" />
   </td>
</tr>
</tr>
<!--<tr>
    <td><a href="javascript:;" onclick="javascript:toggle_div('advanced')" style="font-size:11px"><?php echo Kohana::lang('product_lang.lbl_advanced')?></a></td>
</tr>-->
<tr>
    <td align="left">
    <div style="display:none" id="advanced">
    <table align="left" cellpadding="0" cellspacing="0" border="0">
    <tr>
        <td><?php echo Kohana::lang('product_lang.lbl_category')?></td>
    </tr>
    <tr>
        <td style="padding-top:5px;">    
        <select id="cb_search" name="cb_search" style="width:9em">
            <option value="1" selected="selected"><?php echo Kohana::lang('product_lang.lbl_categories')?></option>
            <?php if(isset($list_catsearch)){ ?>
            <?php for($i=0; $i<count($list_catsearch); $i++){ ?>
            <option value="<?php echo $list_catsearch[$i]['id']?>"><?php echo $list_catsearch[$i]['name']?></option>
            <?php } ?>
            <?php } ?>
        </select>
        </td>
    </tr>
    </table>
    </div>
    </td>
</tr>
<tr>
</form>
</table>
<script type="text/javascript">
	function checkseach(){	
		if(document.getElementById('cb_search').value ==""){
			alert("<?php echo Kohana::lang('product_lang.mss_category')?>");
			document.getElementById('cb_search').focus();	
			return false;	
		} else {
		
			return true;
		}
	} 
	function toggle_div(id)
	{
		var diq = document.getElementById(id).style;
		diq.display=(diq.display=="none") ? "" : "none";
	}
</script>